//
//  lnvSum.swift
//  NewLndd
//
//  Created by 邵禹曦 on 2020/1/7.
//  Copyright © 2020 辽宁当代. All rights reserved.
//

import UIKit
// MARK: - 存货汇总
class lnvSum: NSObject {
    
    var lnvSum : lnvSum?
    // MARK: - 属性
    var CON : String? = "---"     // 商品名称
    var COI : String?   = "---"    // 商品代码
    var HQ : String?   = "---"      // 存货数量
    var HAP : String?    = "---"    // 存货均价
    var HF : String?     = "---"    // 存货余额
    var HPL : String?  = "---"  //货值变化
    var MV : String?    = "---" //存货价值
    var OFQ : String?   = "---" //挂单冻结数量
    var LFQ : String?   = "---" //限销数量
    var DQ : String?   = "---"  // 交收申请数量
    
    
    // MARK: - 自定义构造函数
    init(dict : [String : AnyObject]) {
        super.init()
        setValuesForKeys(dict)
        
        // 商品名称(商品编号)
        //CON = ((dict["CON"] as! String)  + "(" + (dict["COI"] as! String) + ")")
        COI = (dict["COI"] as? String)
        CON = (dict["CON"] as? String)
        HQ = (dict["HQ"] as? String)
        HAP = (dict["HAP"] as? String)
        HF = (dict["HF"] as? String)
        HPL = (dict["HPL"] as? String)
        MV = (dict["MV"] as? String)
        OFQ = (dict["OFQ"] as? String)
        LFQ = (dict["LFQ"] as? String)
        DQ = (dict["DQ"] as? String)
        
    }
    // 重写
    override func setValue(_ value: Any?, forUndefinedKey key: String) {}
}
